package cn.stylefeng.guns.sys.modular.system.ApiEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 美团验券请求参数
 */
public class MtYqParam {

    /**
     * vendorOrderId : 412380809
     * toPayAmount : 28
     * orderSkus : [{"vendorSkuId":"sku001","vendorSkuName":"菜品A","unit":"个","unitPrice":28,"count":1}]
     * couponCode : 77295515951293
     * vendorShopId : 413245
     * eId : 5515951
     * eName : 收银员小明
     */

    /**
     * 收银订单号
     */
    private String vendorOrderId;
    /**
     * 收银订单总金额
     */
    private BigDecimal toPayAmount;
    /**
     * 验券人
     */
    private String createName;

    /**
     * 验券人手机号
     */
    private String createPhone;
    /**
     * 妖码
     */
    private String yaoma;
    /**
     * 需要验证的券码
     */
    private String couponCode;
    /**
     * 收银的门店Id（品牌门店在收银系统中的编号）
     */
    private String vendorShopId;
    /**
     * 收银账号Id（不同门店可一样，也可不一样）
     */
    private String eId;
    /**
     * 收银账号名称（不同门店可一样，也可不一样）
     */
    private String eName;

    private List<OrderSkusBean> orderSkus;

    public String getVendorOrderId() {
        return vendorOrderId;
    }

    public void setVendorOrderId(String vendorOrderId) {
        this.vendorOrderId = vendorOrderId;
    }

    public BigDecimal getToPayAmount() {
        return toPayAmount;
    }

    public void setToPayAmount(BigDecimal toPayAmount) {
        this.toPayAmount = toPayAmount;
    }

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public String getVendorShopId() {
        return vendorShopId;
    }

    public void setVendorShopId(String vendorShopId) {
        this.vendorShopId = vendorShopId;
    }

    public String getEId() {
        return eId;
    }

    public void setEId(String eId) {
        this.eId = eId;
    }

    public String getEName() {
        return eName;
    }

    public void setEName(String eName) {
        this.eName = eName;
    }

    public List<OrderSkusBean> getOrderSkus() {
        return orderSkus;
    }

    public void setOrderSkus(List<OrderSkusBean> orderSkus) {
        this.orderSkus = orderSkus;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreatePhone() {
        return createPhone;
    }

    public void setCreatePhone(String createPhone) {
        this.createPhone = createPhone;
    }

    public String getYaoma() {
        return yaoma;
    }

    public void setYaoma(String yaoma) {
        this.yaoma = yaoma;
    }

    public static class OrderSkusBean {
        /**
         * vendorSkuId : sku001
         * vendorSkuName : 菜品A
         * unit : 个
         * unitPrice : 28
         * count : 1
         */
        /**
         * 收银商品skuId
         */
        private String vendorSkuId;
        /**
         * 收银商品skuName
         */
        private String vendorSkuName;
        /**
         * 菜品单位（如个，瓶等）
         */
        private String unit;
        /**
         * 菜品单价
         */
        private BigDecimal unitPrice;
        /**
         * 	菜品数量
         */
        private int count;

        public String getVendorSkuId() {
            return vendorSkuId;
        }

        public void setVendorSkuId(String vendorSkuId) {
            this.vendorSkuId = vendorSkuId;
        }

        public String getVendorSkuName() {
            return vendorSkuName;
        }

        public void setVendorSkuName(String vendorSkuName) {
            this.vendorSkuName = vendorSkuName;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public BigDecimal getUnitPrice() {
            return unitPrice;
        }

        public void setUnitPrice(BigDecimal unitPrice) {
            this.unitPrice = unitPrice;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }


    }
}
